package entities;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import java.sql.Date;

public class Student extends User {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int beginingYear;

	/**
	 * constructor
	 * 
	 * @param studentID
	 * @param password
	 * @param firstName
	 * @param surName
	 * @param authorizationLevel
	 * @param address
	 * @param dateOfBirth
	 * @param phoneNumber
	 * @param beginingYear
	 */
	public Student(int studentID, String password, String firstName,
			String surName, String authorizationLevel, String address,
			Date dateOfBirth, String phoneNumber, int beginingYear) {
		super(studentID, password, firstName, surName, authorizationLevel,
				address, dateOfBirth, phoneNumber);
		this.beginingYear = beginingYear;
	}

	/**
	 * empty constructor
	 */
	public Student() {
	}

	public Boolean TakeExam(int studentID, int examType, int examID,
			int examCopy, String examCode) {

		return false;
	}

	// ------------------
	// Setters & Getters
	// ------------------

	/**
	 * @return the beginingYear
	 */
	public int getBeginingYear() {
		return beginingYear;
	}

	/**
	 * @param beginingYear
	 *            the beginingYear to set
	 */
	public void setBeginingYear(int beginingYear) {
		this.beginingYear = beginingYear;
	}

}
